package com.example.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class BaseController {

    @RequestMapping("/{name}")
    public String hello(@PathVariable("name") String name) {
        return "你好" + name;
    }
}
